package nl.jtetris.mm;

import java.awt.Graphics;
import javax.swing.JPanel;

public class GamePanel extends JPanel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4954433166225129216L;
	private int x,y;
	
	// constructor GamePanel
	public GamePanel(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	public void paintComponent(Graphics g){
		super.paintComponent(g);
		setSize(400,400);
		setVisible(true);
		g.drawRect(x, y, 100, 100);
	}
}
